From 7498d2c24a1be37c6f4fe50d8ff912e6c17bdbb9 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 21 Jan 2021 23:22:19 -0600 Subject: [PATCH] Improve error message --- src/pgwui_common/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pgwui_common/exceptions.py b/src/pgwui_common/exceptions.py index 80152e7..31c3f79 100644 --- a/src/pgwui_common/exceptions.py +++ b/src/pgwui_common/exceptions.py @@ -121,6 +121,7 @@ class BadAssetSourceError(BadPageSourceError): class NotBooleanSettingError(Error): def __init__(self, key, value): super().__init__( + f'Bad value ({value}) for the {key} setting', 'The "{}" PGWUI setting must be "True" or "False"' .format(key)) -- 2.34.1